package org.jctc.els.modules.biz.entity.districts;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.date.TimeInterval;
import com.xkcoding.http.HttpUtil;

/**
 * 高德地图api
 *
 * @Author: Ice
 * @Date: 2021/12/15
 */
public class DistrictsUtil {


	/**
	 * 根据地址返回下级区域
	 *
	 * @return:
	 * @Author: Ice.Wang
	 * @date: 2021/12/15
	 */
	public static String getDistrictData() {
		TimeInterval timer = DateUtil.timer();
		// URL拼装
		String url = "https://restapi.amap.com/v3/config/district?subdistrict=3&key=9e95e54c5a4d26f66cd6d59a9bf56174";
		// 发送请求
		String resultString = HttpUtil.get(url);

		return resultString;
	}

	public static void main(String[] args) {
		getDistrictData();
	}
}
